package backup

import (
	apiv1 "gomod.alauda.cn/mysql-mgr-operator/api/v1"
	apiv1a1 "gomod.alauda.cn/mysql-mgr-operator/api/v1alpha1"
	corev1 "k8s.io/api/core/v1"
)

var (
	defaultV1Backup   *apiv1.MySQLBackup
	defaultV1A1Backup *apiv1a1.MySQLBackup
)

func init() {
	defaultV1Backup = &apiv1.MySQLBackup{
		Spec: apiv1.MySQLBackupSpec{
			Cluster: &corev1.LocalObjectReference{Name: ""},
			Way:     "",
			Type:    "",
			Storage: &apiv1.Storage{
				S3: &apiv1.S3{
					Secret:   &corev1.LocalObjectReference{Name: ""},
					Region:   "",
					Endpoint: "",
					Bucket:   "",
				}},
		},
	}
	defaultV1A1Backup = &apiv1a1.MySQLBackup{
		Spec: apiv1a1.MySQLBackupSpec{
			Executor: apiv1a1.BackupExecutor{
				UseBinlog:   false,
				MySQLDump:   &apiv1a1.MySQLDumpBackupExecutor{},
				MySQLBinlog: &apiv1a1.MySQLBinlogBackupExecutor{},
			},
			StorageProvider: apiv1a1.StorageProvider{
				S3: &apiv1a1.S3StorageProvider{
					Region:            "",
					Endpoint:          "",
					Bucket:            "",
					ForcePathStyle:    true,
					CredentialsSecret: &corev1.LocalObjectReference{Name: ""},
				},
			},
			Cluster:         &corev1.LocalObjectReference{Name: ""},
			ScheduledMember: "",
		},
	}
}
